package com.xinzhi.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinzhi.common.utils.PageUtils;
import com.xinzhi.common.utils.Query;

import com.xinzhi.user.dao.UserLikeVideosDao;
import com.xinzhi.user.entity.UserLikeVideosEntity;
import com.xinzhi.user.service.UserLikeVideosService;


@Service("userLikeVideosService")
public class UserLikeVideosServiceImpl extends ServiceImpl<UserLikeVideosDao, UserLikeVideosEntity> implements UserLikeVideosService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserLikeVideosEntity> page = this.page(
                new Query<UserLikeVideosEntity>().getPage(params),
                new QueryWrapper<UserLikeVideosEntity>()
        );

        return new PageUtils(page);
    }

}